<?php
/***************************************************************
*  Copyright notice
*  (c) 2009, jianyuzhu@gmail.com
*  All rights reserved
*  This script is part of the PPEMI project.
***************************************************************/

class GroupValidate extends CoreValidate {
	
	//constructor
	function UserValidate() {
		
	}
	
	//methods
	function checkAddGroup($data_array) {
		if( $this->_str_null($data_array['groups_name']) ) {
			$this->_add('groups_name', 'Groups Name is Null'); 
		}
	}
	
	function checkUpdateGroup($data_array) {
		
	}
	
	function checkAddGroupTopic($data_array) {
		if( $data_array['groups_name'] ) {
		
		}
	}
	
	function checkUpdateGroupTopic($data_array) {
		
	}
	
	function checkAddGroupTopicComment($data_array) {
		if( $data_array['groups_name'] ) {
		
		}
	}
	
	function checkUpdateGroupTopicComment($data_array) {
		
	}
}
//
?>